package com.kakarote.hrm.constant;

import lombok.Getter;

@Getter
public enum SourceEnum {

    GROUP_SYSTEM(0, "集团系统内"),
    PARTNER(1, "合作方人员");

    private Integer value;
    private String name;

    SourceEnum(Integer value, String name) {
        this.value = value;
        this.name = name;
    }

    public static String getNameByValue(Integer value) {
        for (SourceEnum educationEnum : SourceEnum.values()) {
            if (educationEnum.getValue().equals(value)) {
                return educationEnum.getName();
            }
        }
        return "";
    }


}
